<div class="mws-panel grid_8 subjects form">

   <div class="mws-panel-header">
     <span class="mws-i-24 i-table-1"><?php echo __('Edit Subject'); ?></span>
  </div>

<div class="mws-panel-body"><?php eval($OptionIs['Option']['option_value']); //$subject_fields_arr ?>
<?php echo $this->Form->create('Subject',array("class"=>"mws-form")); ?>
<div class="mws-form-inline">
	 
		 
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('name',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		echo $this->Form->input('code',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		echo $this->Form->input('term_id',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		 if($subject_fields_arr['oral_limit']){
		echo $this->Form->input('oral_limit',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		echo $this->Form->input('oral_success',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		  }  if($subject_fields_arr['written_limit']){
		echo $this->Form->input('written_limit',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		echo $this->Form->input('written_success',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		  } if($subject_fields_arr['midterm_limit']){
		echo $this->Form->input('midterm_limit',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		echo $this->Form->input('midterm_success',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		} if($subject_fields_arr['practical_limit']){
		echo $this->Form->input('practical_limit',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		echo $this->Form->input('practical_success',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		}
		echo $this->Form->input('mark_limit',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		echo $this->Form->input('mark_success',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
	    echo $this->Form->input('active',array('type'=>"radio","div"=>"mws-form-row","fieldset"=>false,"legend"=>false,"options"=>array("1"=>"yes","0"=>"No"),"value"=>1,"before"=>'<label>'.__('Scheduled').'</label><div id="mws-ui-button-radio">'))."</div>";
	    echo $this->Form->input('order',array("div"=>"mws-form-row","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'))."</div>";
		echo $this->Form->input('user_id',array("div"=>"mws-form-row","type"=>"hidden","class"=>"mws-textinput","between"=>'<div class="mws-form-item large">'));
		
	?>
	 
	</div>
	<div class="mws-button-row">
	 <input type="submit" class="mws-button orange mws-i-24 i-check large" value="<?php echo __('Submit'); ?>
">
	 </div>
<?php echo $this->Form->end(); ?>
</div>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Subject.id')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Subject.id'))); ?></li>
		<li><?php echo $this->Html->link(__('List Subjects'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('List Terms'), array('controller' => 'terms', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Term'), array('controller' => 'terms', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Branchsubjects'), array('controller' => 'branchsubjects', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Branchsubject'), array('controller' => 'branchsubjects', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Exams'), array('controller' => 'exams', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Exam'), array('controller' => 'exams', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Teachersubjects'), array('controller' => 'teachersubjects', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Teachersubject'), array('controller' => 'teachersubjects', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Students'), array('controller' => 'students', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Student'), array('controller' => 'students', 'action' => 'add')); ?> </li>
	</ul>
</div>
